package com.coder.shop.dao.model;

import java.io.Serializable;

public class ShopBrand implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 类型ID
     *
     * @mbg.generated
     */
    private Long typeId;

    /**
     * 简称
     *
     * @mbg.generated
     */
    private String shortName;

    /**
     * 官方网址
     *
     * @mbg.generated
     */
    private String weburl;

    /**
     * 精选品牌(0：是，1：否)
     *
     * @mbg.generated
     */
    private Boolean brandSelection;

    /**
     * 是否禁用(0：是，1：否)
     *
     * @mbg.generated
     */
    private Boolean disabled;

    /**
     * 图片
     *
     * @mbg.generated
     */
    private String picture;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 品牌故事
     *
     * @mbg.generated
     */
    private String story;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getWeburl() {
        return weburl;
    }

    public void setWeburl(String weburl) {
        this.weburl = weburl;
    }

    public Boolean getBrandSelection() {
        return brandSelection;
    }

    public void setBrandSelection(Boolean brandSelection) {
        this.brandSelection = brandSelection;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getStory() {
        return story;
    }

    public void setStory(String story) {
        this.story = story;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", typeId=").append(typeId);
        sb.append(", shortName=").append(shortName);
        sb.append(", weburl=").append(weburl);
        sb.append(", brandSelection=").append(brandSelection);
        sb.append(", disabled=").append(disabled);
        sb.append(", picture=").append(picture);
        sb.append(", sort=").append(sort);
        sb.append(", story=").append(story);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ShopBrand other = (ShopBrand) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getShortName() == null ? other.getShortName() == null : this.getShortName().equals(other.getShortName()))
            && (this.getWeburl() == null ? other.getWeburl() == null : this.getWeburl().equals(other.getWeburl()))
            && (this.getBrandSelection() == null ? other.getBrandSelection() == null : this.getBrandSelection().equals(other.getBrandSelection()))
            && (this.getDisabled() == null ? other.getDisabled() == null : this.getDisabled().equals(other.getDisabled()))
            && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getStory() == null ? other.getStory() == null : this.getStory().equals(other.getStory()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getShortName() == null) ? 0 : getShortName().hashCode());
        result = prime * result + ((getWeburl() == null) ? 0 : getWeburl().hashCode());
        result = prime * result + ((getBrandSelection() == null) ? 0 : getBrandSelection().hashCode());
        result = prime * result + ((getDisabled() == null) ? 0 : getDisabled().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getStory() == null) ? 0 : getStory().hashCode());
        return result;
    }
}